def quchong1(list):
    xx = set(list)
    print(xx)

quchong1([1,123,2,2,2,3])

def quchong2(list):
    list2 = []
    for i in list:
        if i not in list2:
            list2.append(i)
    print(list2)

quchong2([4,4,5,6,7])

# def quchong3(list):